﻿#parse("header.html")
    <div id="pageBody">
        <div class="wrap">
            <div id="mainContent">
                #foreach($item in $posts)
                <div class="mainNewsBox">
                    <h2><a href="${item.url}" id="boxtitle">${item.title}</a><span>$item.createdate.tostring("yyyy")-$item.createdate.tostring("MM")- $item.createdate.tostring("dd")</span></h2>
                    <div class="picandsum">
                        <div class="picandsum_pic">
                             <a href="${item.url}"><img src="${item.ImageUrl}" /></a>
                        </div>
                        <div class="picandsum_sum">
                            <p>${item.detail}……</p>
                        </div>
                    </div>
                    <div class="artTags">
                        <span>Tags:</span>
                        #foreach($item in $item.tags)
                        <a href="${item.url}" title="${item.description}">${item.name}</a>
                        #end
                        <span class="readMore"><a href="${item.url}">阅读全文</a></span>
                    </div>
                </div>
                #end
                #if($posts.count==0)
                <div class="mainNewsBox" style="margin-top:0;">
                    <h2>暂无对应文章</h2>
                </div>
                #end
                ${pager}
            </div>
            #parse("rightbar.html")
        </div>

    </div>
#parse("footer.html")
